//=============================================================================
#include "CLua.h"

//=============================================================================
int Lua_System_GetFPS(lua_State* Lua_Handle) {
    lua_pushnumber(Lua_Handle, CFPS::FPSControl.GetFPS());

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_GetSpeedFactor(lua_State* Lua_Handle) {
    lua_pushnumber(Lua_Handle, CFPS::FPSControl.GetSpeedFactor());

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_GetUptime(lua_State* Lua_Handle) {
    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_GetValue(lua_State* Lua_Handle) {
    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_LogError(lua_State* Lua_Handle) {
    const char* String = lua_tostring(Lua_Handle, 1);

    if(String) CLog::Error(String);

    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_LogNotice(lua_State* Lua_Handle) {
    const char* String = lua_tostring(Lua_Handle, 1);

    if(String) CLog::Notice(String);

    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_System_SetValue(lua_State* Lua_Handle) {
    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//=============================================================================
